added simple validation

to sendMessage