Log out functionality implemented