if (!model || !bcrypt.compareSync(req.body.password, model.get('password-hash'))) {
      var error = {
        errors: [{
          "status": "401",
          "title": "Incorrect Credentials",