moved function to write barcode to polaris_barcodes table from thank you page to submit function