hostgroup_id is sent as part of $("form").serialize so this line isn't needed