fixing email app registration