Feature to prevent user from sending empty messages in inputwidget

A fix for preventing users from sending empty messages