add basic form validation