Refactor to use Input objects
Fill in default values in HTML form