Replace ValidationError constructor to createValidationError method in s...

...ection validators

- add equal, hashCode, and toString method