Added callback for unique validation