Form gets stuck on "Please Wait" message when it's submitted