title: POST request returns 422 (unprocessable entity)
body: <p>I have an AngularJS app that is using node.js and Loopbackjs to communicate with a mysql database. I am able to properly show my GET request on the <code>partial-home.html</code> aspect of the page, but when I create a new user it returns the following error:</p>
  
  <pre><code>POST http://localhost:3000/api/se_users 422 (Unprocessable Entity)
  </code></pre>
  
  <p>Here is my code:</p>
  
  <p>partial-create.html</p>
  
  <pre><code>&lt;div class="row"&gt;
      &lt;div class="col-md-8"&gt;
          &lt;h1&gt;Create a User&lt;/h1&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;div class="container-fluid"&gt;
      &lt;div class="row"&gt;
          &lt;div class="col-md-6 col-md-offset-3"&gt;
              &lt;form name="create" ng-submit="se_user()"&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="user_id"&gt;ID&lt;/label&gt;
                      &lt;input type="text" class="form-control" ng-model="user.eid" placeholder="Enter EID"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="first_nm"&gt;First Name&lt;/label&gt;
                      &lt;input type="text" class="form-control" ng-model="user.first_nm" placeholder="Enter First Name"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="last_nm"&gt;Last Name&lt;/label&gt;
                      &lt;input type="text" class="form-control" ng-model="user.last_nm" placeholder="Enter Last Name"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="email_adr"&gt;Email Address&lt;/label&gt;
                      &lt;input type="text" class="form-control" ng-model="user.email_adr" placeholder="Enter Item Type"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="user_role"&gt;Role&lt;/label&gt;
                      &lt;input type="text" class="form-control" ng-model="user.role" placeholder="Enter Status Code"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="user_active"&gt;Active&lt;/label&gt;
                      &lt;div class="radio"&gt;
                          &lt;label&gt;
                              &lt;input type="radio" name="optionsRadios" id="optionsRadios1" value="Yes" ng-model="user.active" checked&gt;Yes
                          &lt;/label&gt;
                      &lt;/div&gt;
                      &lt;div class="radio"&gt;
                          &lt;label&gt;
                              &lt;input type="radio" name="optionsRadios" id="optionsRadios2" value="No" ng-model="user.active"&gt;No
                          &lt;/label&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="mgr_full_nm"&gt;Manager Name&lt;/label&gt;
                      &lt;input type="text" class="form-control" ng-model="user.mgr_full_nm" placeholder="Enter Full Name"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="mgr_eid"&gt;Manager EID&lt;/label&gt;
                      &lt;input type="text" class="form-control focus" ng-model="user.mgr_eid" placeholder="Enter Manager EID"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="insrt_dt"&gt;Insert Date&lt;/label&gt;
                      &lt;input type="date" class="form-control" ng-model="user.insrt_dt" placeholder="Enter Date"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="insrt_user_id"&gt;Insert User EID&lt;/label&gt;
                      &lt;input type="text" class="form-control" ng-model="user.insrt_user_id" placeholder="Enter User EID"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="upd_dt"&gt;Update Date&lt;/label&gt;
                      &lt;input type="date" class="form-control" ng-model="user.upd_dt" placeholder="Enter Update User Date"&gt;
                  &lt;/div&gt;
                  &lt;div class="form-group"&gt;
                      &lt;label for="upd_user_id"&gt;Update User EID&lt;/label&gt;
                      &lt;input type="text" class="form-control" ng-model="user.upd_user_id" placeholder="Enter Update User EID"&gt;
                  &lt;/div&gt;
  
  
                  &lt;button class="btn btn-primary btn-lg" ng-click="addSe_user()"&gt;Create User&lt;/button&gt;
  
                  &lt;br&gt;
                  &lt;br&gt;
                  &lt;pre&gt;
          {{user | json}}
          &lt;/pre&gt;
  
              &lt;/form&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>app.js</p>
  
  <pre><code>angular.module('userApp', ['ui.router', 'lbServices'])
  
  .controller('UserController', ['$scope', '$state', 'Se_user', function ($scope, $state, Se_user) {
      $scope.users = [];
  
      function getSe_users() {
          Se_user
              .find()
              .$promise
              .then(function (results) {
                  $scope.users = results;
              });
      }
      getSe_users();
  
      $scope.addSe_user = function () {
              Se_user
              .create($scope.user);
              alert('You have created a new user!')
              $scope.create.$setPristine();
  
          };
  
      $scope.editSe_user = function(user_id) {
          Se_user
              .editById(user_id)
              .$promise
              .then(function (user_id) {
                  getSe_users();
          });
      };
  
      $scope.removeUser = function (item) {
          Se_user
              .deleteById(item)
              .$promise
              .then(function () {
                  getSe_users();
              });
      };
  }])
  
  .config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {
  
      $urlRouterProvider.otherwise('');
  
      $stateProvider
  
          .state('home', {
              url: '',
              templateUrl: 'partial-home.html',
              controller: 'UserController'
          })
          .state('create', {
              url: '/create',
              templateUrl: 'partial-create.html',
              controller: 'UserController'
          })
      .state('admin', {
          url: '/admin',
          templateUrl: 'partial-admin.html',
          contoller: 'UserController'
      })
  
  }]);
  </code></pre>