added validation for unique validation