minor fix for unique field validator