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

added validation checks