add validator.
refactor: query by ip - add IpInBytes.