thank you message and input validation