rewrite of if statements in _validationRules