add error if type of uploaded file is not valid