removed index, modified login and logout