Add logout confirmation, issue 329