error messaging for invalid file type