create message functionality (error when including validation)