502 Bad Gateway error: Form doesn't notify when submitted