clear chat input before submitting message