checking if cookies are in the request headers