added validation checks
Merge pull request #23 from inaka/hernan.message_checks

added validation checks
Merge pull request #17 from HernanRivasAcosta/master

Parity