validate filename on save as well