diff --git a/main/core/Resources/modules/validation/index.js b/main/core/Resources/modules/validation/index.js
index <HASH>..<HASH> 100644
--- a/main/core/Resources/modules/validation/index.js
+++ b/main/core/Resources/modules/validation/index.js
@@ -14,7 +14,7 @@ function notEmpty(value) {
   }
 }
 
-function notBlank(value, options) {
+function notBlank(value, options = {}) {
   if (typeof value === 'string') {
     value = value.trim()
   } else if (isNaN(value)) {
@@ -110,7 +110,7 @@ function lengthInRange(value, options) {
 }
 
 function ip(value) {
-  if (match(value, {regex: /^([0-9]{1,3}|[\\*])\.([0-9]{1,3}|[\\*])\.([0-9]{1,3}|[\\*])\.([0-9]{1,3}|[\\*])$/g})) {
+  if (!match(value, {regex: /^([0-9]{1,3}|[\\*])\.([0-9]{1,3}|[\\*])\.([0-9]{1,3}|[\\*])\.([0-9]{1,3}|[\\*])$/g})) {
     return tval('This value should be a valid IPv4.')
   }
 }
[CoreBundle] Fixing resource property accesses validation. (#<I>)