load schema only when validating

In some conditions the app didn't work properly, so we added controls to avoid the loading of the remote XSD for non-validating calls.