key uniqueniess validation only if a key is given.