[fix] fixed validation when register an user

i will open an issue for this.