Fix dynamic_form errors message deprecated issue