more login page state stuff