Refactored index and app to include a fixed MainController managing login status