added logout stuff