cookies work but are not recognized