added possibility to setup error message in validator's constructors