fixed issue with tutorial document to include $related variable in form_fields method