Added the form validation