Add logic for logged-in-state (bug 1103072)

Not now there isn't but it's a good habit so we don't inadvertently end up running something else added later.