set validator schema only if twitter formatter is used
removed incorrect code