Fixed login so that you must be logged in to access a page, navbar displays different settings if you're logged in or not. Added dashboard page to show all new links. Small bug fixes and code refactoring.