Added error checking for the numbers but not yet for the letters.