fixed default_code validation pattern