verifyKeys: fixed logout bug