Issues with referencing an array in a form