Small fix: reset generates logout only if logged on