modified for country cookie validation