finally got logout to work by unwinding segue