Handle illegal input