diff --git a/src/libs/routes/user.js b/src/libs/routes/user.js
index 274e68bb8dd1ae1ae90055d3291df3776ad8fff0..4cb42c0456d56657077ffa4d88e08a6cfd5c60af 100644
--- a/src/libs/routes/user.js
+++ b/src/libs/routes/user.js
@@ -55,7 +55,7 @@ userApp.post('/authenticate', (req, res) => {
         if (err) throw err;
 
         if(!user){
-            res.send({success: false, msg: 'Authentication failed. User not found.'});
+            res.json({success: false, msg: 'Authentication failed. User not found.'});
         }
         else {
             user.comparePassword(req.body.password, (err, isMatch) => {