Thank you page is not displayed when form is submitted