Fix test.
Made username and password optional for login if settings permit.