Return user from loginUsingID. Fixes #2871.