cancel register logout in cookie