Fix file type validation