included some basic form validation