refactored data validation library being used