refactor a bit - add login dropdown menu in navbar.