added security check into customer cookie