change method for logout