[id26]Implementation of logout functionality