adds login option to main page and moves imports in separate file