add locale validator