update demo for custom error attribute