Why thank you page is not working properly?