Added nifti file validation.