fix login/logout buttons on main page to update when user is logged in/logged out