changed field errors to include field.type.error class