Magento 2: Customer not able to login on multi-website second website

I have a multiwebsite on 2.4.3p1 with urls xyz.com and xyz.com/wholesale. The customer is not able to login from the wholesale website. It is redirecting to the login page.

Any help would be appreciated.