adding a basic logging out functionality