private void CheckRepetitionPassword(InputValidationSystem.BaseInputFieldNode <RepetitionPasswordInputComponent> repetitionPasswordInputField, PasswordInputFieldNode passwordInputField, PasswordErrorsComponent strings)
 {
     if (string.IsNullOrEmpty(repetitionPasswordInputField.Input))
     {
         repetitionPasswordInputField.ToNormalState();
     }
     else if (repetitionPasswordInputField.Input != passwordInputField.Input)
     {
         repetitionPasswordInputField.ToInvalidState(strings.PasswordsDoNotMatch);
     }
     else
     {
         repetitionPasswordInputField.ToValidState();
     }
 }
        private void ChangePasswordInputFieldState(InputValidationSystem.BaseInputFieldNode <RegistrationPasswordInputComponent> passwordInputField, PasswordErrorsComponent strings, EntranceValidationRulesComponent rules)
        {
            string input = passwordInputField.Input;

            if (string.IsNullOrEmpty(input))
            {
                passwordInputField.ToNormalState();
            }
            else if (rules.IsPasswordTooShort(input))
            {
                passwordInputField.ToInvalidState(strings.PasswordIsTooShort);
            }
            else if (rules.IsPasswordTooLong(input))
            {
                passwordInputField.ToInvalidState(strings.PasswordIsTooLong);
            }
            else
            {
                passwordInputField.ToValidState();
            }
        }