Query Validation control if changed