Extracted render logic for model errors