Added check that adds 'errors' key to validation results dictionary only if errors were encountered