added test for user logged in navbar