Multiple issues with form functionality