Made a universal logout, checked manager auth