to retain the forms data on validation failure, the failure redirect should point back to the form instead of going to another page.
On the form page, open the bindings panel, there will be a Validated Entries collection on the bindings panel, bind each form element to corresponding validated entries binding.