pub fn authentication(is_valid: bool, context: &'static str) -> Result<()>
Validate authentication result