refreshes navbar on logout