reverts incorrect cookie check