def valid_name(name):
    """
    This function checks if the given name is a valid name
    """
    if not isinstance(name, str):
        return "Bad input. Name should be a string"
    if len(name.strip()) == 0:
        return "Name can't be empty. Please enter a valid name"
    elif len(name.strip()) < 3:
        return "Invalid Name. Name must be at least 3 characters long"
    else:
        return "Valid"