Change chatInput to inside messages