fixed custom validate method on User class