Add file type validation.