added validations on messages and broadcasts, length and presence