If registration fails, user field data is lost!

Hi,

In the registration if someone does not use 6 or more characters for the password or their emails do not match they are forwarded to the same page with some or none of the field data missing. If you mess-up the captcha then all your data is kept except for the double password... etc ...

How can I stop the forwarding process and still retain the login errors that are being created? What I want to do is use ajax instead so the page does not have to reload, therefore the data won't go missing.

Does someone have a solution to this or some insight?

Thanks,
4dplane