yet another fix for login state stuff