rough version of form validation added to app