I'm developing a program that requires users to log in (or register if they do not have an account). If the user enters invalid information (e.g. invalid password/two email addresses entered differently), they receive an error page with an "a href" link to go back to the form page. However, they lose all the information already entered. How can I retain this information when sending the user back to the login/registration page?