undo logout fix.

Fix for the logout after register removed. Causing unforeseen bugs.