add custom message fn to validate-with-predicate
Merge pull request #32 from racehub/message_fn

add custom message fn to validate-with-predicate