Fixes to login/logout (update users.txt)