diff --git a/lib/middleware/content/validate.js b/lib/middleware/content/validate.js
index <HASH>..<HASH> 100644
--- a/lib/middleware/content/validate.js
+++ b/lib/middleware/content/validate.js
@@ -24,13 +24,19 @@ module.exports = function validate(kontx, next){
 
     // Function will test to see if the content type is in the system.
     function validateContentType(cb){
-        db.contentTypes.getById(kontx.args.type.toString()).then(
-            function(contentType){
-                cb(null, contentType);
-            },
-            function(){
-                cb(createError(400, messages.invalid_content_type));
-            });
+        if( !_.isUndefined(kontx.args.type) ) {
+            db.contentTypes.getById(kontx.args.type.toString()).then(
+                function(contentType){
+                    cb(null, contentType);
+                },
+                function(){
+                    cb(createError(400, messages.invalid_content_type));
+                });
+        }
+        else {
+            cb(createError(400, messages.invalid_content_type));
+        }
+
     }
 
     // Function will iterate all the fields in the content type and check the validation rules for each one.
Fixed crash when submitting data with no content type. Now it returns a bad request and a message saying that the content type is invalid.