add relation validation.