validations for filetypes