fixed logout bug, switched logger format