refacterd nav bar
changes current user check in navbar.