paste input validation