             inactive  : 1
 
         user.update userUpdateOptions, (err) ->
-          return callback err  if err
+          return next err  if err
 
           # This should be called after login and this
           # is not correct place to do it, FIXME GG


    (key for key of validator).forEach (field) =>

      queue.push => validator[field].call this, userFormData, (err) ->

        if err?
          errors[field] = err
          isError = yes

        queue.fin()

    dash queue, ->

      callback if isError
        { message: 'Errors were encountered during validation', errors }


module.exports = class JUser extends jraphical.Module

  { v4: createId }      = require 'node-uuid'
  { Relationship }      = jraphical
  { secure, signature } = require 'bongo'

  JAccount             = require '../account'
  JSession             = require '../session'
