Form Not Submitting: stays on "please wait" and after a while 502 Bad Gateways message is given