finish login feature of C++ Qt