validate_relationships function

Validate relationships against available datasources and fields