[fix] fixed validation when register an user

all lines above: Please use a format like `variable == true`