made logout redirect to index page