Add basic message validation and recognize a login message in TotemComm class