add validations to relationship model