Updated the register function to email.  Email functions have been set up and fixed.