added logout as requested