Why is my form getting stuck on please wait?