Better error handling in Validator -> validateUnique