Updated checkcookie function