Added logging to validator factory generator
Refactored and improved performance of validator generator