fixed isLoggedIn change event