send message error from function validation