added validation for users