on login: re render index page