add functionality for logout at any time