Login and logout finished.