add basic auth method