added logout capability