Add login/logout with lib-noir