added logout prompt