Fixed Logout system