navBar_bugfix_showingUpOnSign-inPage

I had introduced a bug while refactoring code for navigaton bar.
Please review the fix and let me know if it is ok to merge the changes