Reworked login/logout flow, added index page