adds home page and fixes login