fixed logout

closes #56