Adds an 'errors' hash to beforeRender