Added basic form validation