added template tag to display errors in user code