def validate_doubles(password):
    """ It contains at least one letter that appears twice in a row """
    for i in range(len(password) - 1):
        if password[i] == password[i + 1]:
            return True
    return False