send message after success and clear input