validateServerUrlAndCredentials