Issue #2330423 by ashutoshsngh: Remove form.inc form_get_error().
Issue #2333353 by ashutoshsngh: Remove usage of form_get_errors().