Update validates code