Refactoring in order to move more validation behavior to ValidationHelper and make it reusable.