Added update method for form.