Prepopulate login form with username/email after successful registration...
To avoid a newly registered user needing to retype their username or email into the login form which immediately follows from clicking "Ok" on a successful registration form response, prepopulate that form with either the username or email. This requires that data to be passed back to Javascript as there's not yet an authenticated session...