Added Functionality for logout