Bit of refactoring.  Only look at inputs for the form specified, not all them on the page.