Refactoring #265
- new parameters: errorTpl, errorRequiredTpl, errorRequiredSeparator