fn load_credentials(filepath: Option<String>) -> Result<Credentials, String>