fixed logout stuff