How can we save information before the form is submitted?