Add support for logout