adding basic_auth method