Validity style validator to ensure a property is equal to some primitive value