validator.addValidators("Password", new StringLengthValidator(
passwordTextRegister, 4, 25).addActionForFailure(
new StyleAction("validationFailed")).addActionForFailure(
new CustomLabelTextAction(passwordRegisterError, false)));
validator.addValidators("Email", new EmailValidator(emailTextRegister)
.addActionForFailure(new StyleAction("validationFailed"))
.addActionForFailure(
new CustomLabelTextAction(emailRegisterError, false)));
}