added logout confirmation