Unable to submit form. Error message "502 Bad gateway"