log out error that seems to be doing an odd thing