added validation
added validation