hint text added to the question to explain this I have also added all rent periods to a hidden field to remove the need to fetch them again form the db in the update method