If you use Two-Step Verification or Yahoo Account Key, the Windows Mail app cannot log in with your standard password for security reasons. You must generate a specific password for the app: