fix for loginCookie - sometimes user isn't logged in after page refreshed