added validation to the language