Modified Edit so it prints original name if validation fails