Capturing a users email at the password creation point


I’ve used SQL to bulk insert lots of users. I need these users to be able to set up their own password, but not all users have an email address. Is there a way to capture their email address whilst they are choosing their password?

Many thanks