Refine logout_user mathod.

- Refine logout_user mathod.