added validation on name field