Figured it out. The problem was the logic in my controller. Was set to redirect after validation but not told to do anything else if validation failed because of the way I had structured my if, else statements.
into [[‘display_name’, ‘email’], ‘unique’, ‘targetClass’ => ‘\app\models\Users’], Users model is where has email attribute.This model will check unique for email automatically.