first draft of form validation