added validation to web form