update to new way of getting form value