Update logout method