I made 2 different sites and experienced the same issue.
I followed the code in this article
I was able to customize the buttons and even add a customized profile picture image that switches from icon to member's profile (if uploaded)
The problem is when a member logs in the do not see the "Login" button switch to "Logout" and the "Profile" button to go from hidden mode to display. I discovered that the login in process actually goes through but the page doesn't load correctly and it's stuck showing the same state. Only if I refresh the page upon login in I am able to see the buttons correctly - and everything works perfectly.
Has anyone experienced this? Couldn't get help from wix coders so I hope someone has an answer.
P.S - A work around this issue would be having a script that automatically refreshes the page once upon logging in. As much as it's a band-aid it will help me get through the project.
Thanks for reading this and appreciate all inputs.