Fixed "is logged in" after refresh