added logout to base