Added logout to the example