Added code to produce the model for form input based on the fields that are apart of the form, not just what was submitted.