Monkey patch for uniqueness validator to support encrypted fields