Form hanging on Please Wait message after clicking the submit button