logout is ok, confirm code is ok. TODO:post comment