fixing auth method