Thank you message not displayed after clicking on Submit