Added support for logout operation