Move the barcode check into the backend to stop the hierarchy validation from failing.