Updated chat box with input form