figuring out how to validate the form