Update hidden input of form