enable cookies to work as expected