implemented operation 'logout'