input validation update