Add login and logout Funtionality