added logging out