add basic authentication method