Disable barcode input when database is invalid