pub fn validate_username(name: &str) -> Result<(), String>
Validate a username against the platform rules.
Returns Ok(()) when the username is acceptable, or Err(message) with a human-readable reason.
Ok(())
Err(message)