added logout.