handling if there is no cookie