pub fn check_errors(config: &Config) -> Result<(), String>
Contains all checks helper functions into one function