pub fn validate_device( name: &str, platform: &str, ) -> Result<String, (&'static str, &'static str)>