added unique validation