[fix] fixed validation when register an user

same as above