impelmented message and logout