Refactored validation initializer.