invaild credentials error while adding email account

We are trying to set up Frappe Helpdesk. We have also enabled 2FA and generated an app password. However, even after using the same email ID with the app password, it still says “invalid email or password.”

Is there anything we are missing?

Thanks!