made submit button work and say thank you, added validation, added error message