navbar interaction with loged in and loged out user