Validate message type for handlers