edit redirect logout