How to keep the entered data in the first page without submitting the form?