Fix bug, refresh nav bar after login ok.