added functionality to validate ipAddresses in validatorTrait with tests on TraitConcrete class