print error  when numbers are invalid