pub fn validate_input_format( input: &str, max_length: usize, allow_special: bool, ) -> Result<(), String>
Validate input length and format