     User.validateUsername @username
 
   validatePasswordHash: () ->
-    User.validatePasswordHash @password_hash
+    User.validatePasswordHash @passwordHash
 
   validateEmail: () ->
     User.validateEmail @email

  #     user = new User
  #       username:      'demosthenes'
  #       email:         'demos@athens.net'
  #       password_hash: '$2a$12$6nZyzVgeCmBK9JkZb9rNG.9s/d/i/g2Tbyf4vk318XQLQKi4GXXZ2'
  #
  # @api public
  # @see Users#create()
  # @param [Object] params A hash of user params.
  # @param [String] params.username The user's login name.
  # @param [String] params.email    The user's email adress.
  # @param [String] params.password_hash The user's password hash.
  constructor: (@username, @email, @password_hash) ->
    if arguments.length == 1
      params = arguments[0]
      @username      = params.username
      @email         = params.email
      @password_hash = params.password_hash

  ### Instance Methods ###


    return user instanceof User and
      user.username == @username and
      user.email == @email and
      user.passwordHash == @passwordHash

  #### Validation ####

