fixing unique validation