Added logout redirect and index redirect