adding ability to customize error message in validator