Update a form field value not working