Fixes login, deletes unneeded pages, changes index