fix invites, raise email errors