Test logging in with C++