add logout method
2.3.0