Replaced use of form_set_error() with setErrorByName().