Added token resets when they are invalid