added validation to users