Resetting token on session error