fix invalid file (image) url in form when file validation fails