     { r: { group, user, account }, clientIP } = client
 
     storage ?= 3
+
+    if isNaN storage
+      return callback new KodingError \
+      'Requested storage size is not valid.', 'WrongParameter'
+
     userIp   = clientIP or user.registeredFrom?.ip
     provider = 'koding'
 

               always on vm limit has been reached.""", "UsageLimitReached"

        if resize?
          if resize > userPlan.storage
            return callback new KodingError \
            """Requested new size exceeds allowed
               limit of #{userPlan.storage}GB.""", "UsageLimitReached"


          if alwaysOn?
            fieldsToUpdate['meta.alwaysOn'] = alwaysOn

          if resize?

            storageSize = machine.meta?.storage_size ? 3
