Stuck on 'please wait' after clicking on Submit button