Added code to properly set the password and send an e-mail
to the user.