Add login and logout.