chat input form enhancement