import re


def valid_pid(entry):
    """Validate pid entries"""
    if len(entry) == 9:
        check = re.match(r'\D', entry)
        if check is None:
            return True
        else:
            return False
    else:
        return False