Adding toggling between login and logout