Add login and logout basic fanction