fixed routing for setting the agreement cookie