Improved authentication and added navbar.