Split the validation functionality to a validators module