Add basic authentication with cookie