Adds validations to models