adding the logout feature