-Fixed Issues with destructor and logout logic