Check for duplicate files when renaming.
Block form submission when validation fails.