I am unable to add Yahoo account

Whenever I try to add my yahoo account to k9 it gives me error saying incorrect username or password. I checked the username and password and they are correct. I am able to add account with the same credentials in bluemail app but for some reason I am unable to add my account to k9mail.

I am using the settings mentioned here,

You need to set up an App Password within Yahoo. Go to Account Security to create it, and use it as the password within the K9 app settings for fetching and sending messages