rewrote submit function to keep trying to register customer if we submit a used barcode