Worked on form validation