text: $(document).ready(function() {
      $('#reset-form').bootstrapValidator({
          container: '#messages',
          feedbackIcons: {
              valid: 'glyphicon glyphicon-ok',
              invalid: 'glyphicon glyphicon-remove',
              validating: 'glyphicon glyphicon-refresh'
          },
          fields: {
              email: {
                  validators: {
                      notEmpty: {
                          message: 'The email address is required and cannot be empty'
                      },
                      emailAddress: {
                          message: 'The email address is not valid'
                      }
                  }
              },
              password: {
                  validators: {
                      notEmpty: {
                          message: 'Enter a password'
                      },
                      stringLength: {
                          min: 6,
                          max: 30,
                          message: 'The password must be more than 6 and less than 30 characters long'
                      },
                  }
              },
              password_confirmation: {
                  validators: {
                      notEmpty: {
                          message: 'Re-enter your password'
                      },
                      identical: {
                          field: 'password',
                          message: 'The password and its confirm are not the same'
                      }
                  }
  
              },
  
          }
      });
  });