validator for language