add file type validation