fix template so inputs are ids not classes. chat.js didn't work otherwise