CustomCheckFailMsg can now be a function. More freedom