trying to create auth method