Updated code to ensure that there is one property that is a valid URL AND that the other is a valid filename without paths or wildcards.