text: 
  var BasePagesLogin = function() {
      // Init Login Form Validation, for more examples you can check out https://github.com/jzaefferer/jquery-validation
      var initValidationLogin = function(){
          jQuery('.js-validation-login').validate({
              errorClass: 'help-block text-right animated fadeInDown',
              errorElement: 'div',
              errorPlacement: function(error, e) {
                  jQuery(e).parents('.form-group > div').append(error);
              },
              highlight: function(e) {
                  jQuery(e).closest('.form-group').removeClass('has-error').addClass('has-error');
                  jQuery(e).closest('.help-block').remove();
              },
              success: function(e) {
                  jQuery(e).closest('.form-group').removeClass('has-error');
                  jQuery(e).closest('.help-block').remove();
              },
              rules: {
                  'email': {
                      required: true,
                      email: true,
                      minlength: 5
                  },
                  'password': {
                      required: true,
                      minlength: 6
                  }
              },
              messages: {
                  'email': {
                      required: 'Please enter a username',
                      minlength: 'Your username must consist of at least 3 characters'
                  },
                  'password': {
                      required: 'Please provide a password',
                      minlength: 'Your password must be at least 5 characters long'
                  }
              }
          });
      };
  
      return {
          init: function () {
              // Init Login Form Validation
              initValidationLogin();
          }
      };
  }();
  
  // Initialize when page loads
  jQuery(function(){ BasePagesLogin.init(); });