Validating new name(rename file dialog).