fixed validation on filetype