logout if message has incorrect begin string (#7)