Imporve loginCookie a bit