loginCookie improvements