authenticate static method for User model