Testing if 'user' config value is present is not necessary, because the 'username' field is mandatory in HostOptions and there is also a check that prompts user to enter new credentials if user is not set.