[fix] check if type of email is set