validate directive changed.