add flashed message for logout, then go to index