add validator from query