Alter a form's values on submission but before validate? I'm trying to set up the user registration form to populate the username field with the email address field. Is there a way to do this without using hook_validate and having to manually do the form validation?
hook_form_alter() (or hook_form_FORM_ID_alter()) can be used to populate any field before rendering.