Updated register so it saves the user's email address.