Added a form validation