functionality to swap between login and logout was implemented