Default register page clears form on failed validation

Is there any way to have the default register page not clear all fields on validation error?

Is creating a custom theme the option or is this just the default server behavior? I am just asking because more modern applications keep form state on validation failure, barring password and other sensitive data, and I would need this type of functionality.

Thank you!