fix logout stuff