Add validate to TagQuery