mdl user reg bug fixed