Getting error on transaction when submitting form