kiosk checks for correct message type