added validation for user