Changing $req->COOKIES to $req->COOKIE