added validation to html pages