fixes homepage behavior when logged in from previous session