fixed the logout bug; this time for sure

previous commit had a wrong file; this one is the correct one