Add login session and basic authentication.