Refactors validateMimeType usage