fix unique validation