Add validations for barcodes