On my website, I use an entry in the htaccess file that prohibits access to the wp-admin directory and the wp-login file to defend myself against hackers.
Customers can register and log in.
The problem is when logging out from the side panel.
I will add that this problem does not occur on the user account page.
I have attached screenshots.
Please help.