updated validation rules for ManyToOne  relations