logging out functionality is added.