Added validation on message submit