User model added validation