Add error class to row_attr if field has errors

I figured this might be useful to others. A very simple change.