Added functions to handle being able to register email accounts from the device.