check for valid file_name