How to keep data saved in each page before submitting the form.