Added login/logout option