update main page and add login