add log out feature.