render a template for pages/index
Use DELETE method for logout