Form displays 'Please wait' error message after submitting the form