cleaning input after inserting message