edited index, logIn, logOut