name validator spec refactored