Fix doUserLogin to match config changes