Some IdPs might not be configured to send the email in the NameID field, even if the users log in using the email. We changed our IdP to send the information in the NameID field, but it might be useful for others.