Fixes login when main identity has an email (eg. Facebook)