Enhanced unique validator