add Compare validator

see title