Replacing deprecated field_widget by form_widget