Added file type validator.