Issue #1818992 : use the correct form API id so that the 'error' css class gets correctly added to the field.