Takes a model and updates its values using form fields