UpdateChat

update function to add text field