Why is my form stuck on please wait when trying to submit it?