logout to index