hashcode + equals for validators.