Model associations and validations.