Adds server side validation to Message model