fixed flash messages, and remove name validation in file_info model.