in validate_contains, added "isset" check to prevent a reference error
if a ruleset uses contains and that parameter is not provided