Add login and logout action