adds logging out