added isdigit() loop to validate input

a for loop checks the three digits of the dog ID; if any are not 0-9, it'll print an error message and return -1. also added an error message if dogID is less than 3 characters long