Added has duplicates rule to validation.