When user submits form it gets stuck on "please wait..."