Validate uniqueness before save