Bug fixes to test harness login.