Implemented login and logout.
Implemented the navbar accordingly.