def is_password_valid_with_new_rules(dataset):
    """ Validate password accoding to the new rules """
    char_found = 0
    if dataset['password'][int(dataset['first'])-1] == dataset['letter']:
        char_found += 1
    if dataset['password'][int(dataset['last'])-1] == dataset['letter']:
        char_found += 1
    return char_found == 1