after a user is created, generate a code for them.