Removed the validator object and replaced it with separate validation functions for each object.