Change check for id to be 1 <= id <= 3, and print error message if
it's not true.