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

I feel like we could end up adding code that we want to run and get caught by this too. It isn't a big deal but I'm not crazy about it.