Correct update and check barcode against regex