improve validation on barcode prefixes