Submit button stuck on "Please Wait", then "Bad Gateway"