Added form validation in the html