Submitting a form shows "Please Wait..." and remains stuck