Form not submitting and stuck on please wait