Fix register validate