Validate the numbers to be scanned by barcode such as from 1-100

@ammaar_al_nofaish, this post discussed previously should help you solve your issue: