Adding input name
Updates fields