fixed logout system