Form hanging at "Please wait" after clicking on Submit