adds validations to all models