Updated HTML form and fixed undefined variable error