Update Translator.java

changed 'validate' method