updating form fields