MIME type extension check added