check where the invalid data in setCookies() comes from