Added user check
Merge pull request #202 from wshafer/master

Moved logout check to core