Let me know when you implement this. I created custom log in pages for 2 different website by following the code here.
https://support.wix.com/en/article/how-to-build-your-own-members-area-using-code
Both websites experience the same issue:
When I log in the button doesn’t switch to logout and the profile button doesn’t show up. After a few times I realized when I refresh the page it shows the correct states of the buttons. Basically the login page doesn’t download correctly at first and has to be refreshed. Has anyone experienced this?