protected function LoadValidators($action)
 {
     if ($action == ManageUsersActions::UpdateUser) {
         Log::Debug('Loading validators for %s', $action);
         $this->page->RegisterValidator('emailformat', new EmailValidator($this->page->GetEmail()));
         $this->page->RegisterValidator('uniqueemail', new UniqueEmailValidator($this->userRepository, $this->page->GetEmail(), $this->page->GetUserId()));
         $this->page->RegisterValidator('uniqueusername', new UniqueUserNameValidator($this->userRepository, $this->page->GetUserName(), $this->page->GetUserId()));
     }
     if ($action == ManageUsersActions::AddUser) {
         Log::Debug('Loading validators for %s', $action);
         $this->page->RegisterValidator('addUserEmailformat', new EmailValidator($this->page->GetEmail()));
         $this->page->RegisterValidator('addUserUniqueemail', new UniqueEmailValidator($this->userRepository, $this->page->GetEmail()));
         $this->page->RegisterValidator('addUserUsername', new UniqueUserNameValidator($this->userRepository, $this->page->GetUserName()));
         $this->page->RegisterValidator('addAttributeValidator', new AttributeValidator($this->attributeService, CustomAttributeCategory::USER, $this->GetAttributeValues()));
     }
     if ($action == ManageUsersActions::ChangeAttributes) {
         Log::Debug('Loading validators for %s', $action);
         $this->page->RegisterValidator('attributeValidator', new AttributeValidator($this->attributeService, CustomAttributeCategory::USER, $this->GetAttributeValues(), $this->page->GetUserId()));
     }
 }