added validation on name