adding "data" protection to error templates