Add "live" validation into Rename dialog

What's remaining to do is disabling the `OK` button if the new name is not valid.