Validator.check now takes callback from fail_msg if the former is undefined and the latter is a function