Fix toggle login and logout buttons on home view