added validation to html