Added validations to all the models.