Feature to prevent user from sending empty messages in inputwidget