show proper error messages for invalid file input on import