immediately update when user log in or log out