Validations on models as well as migration for tid and mid