cookie null check for when first request without cookie