barcode input & validation control