getting logout to work