Modification for bug #24. Username is mandatory only if
"appendWorkerNames" is disabled and password is mandatory only if
"useWorkerPassword" is disabled.