patterns set for validations refactoring