     valid
 
   saveUser: ->
-    return unless this.validateUser()
+    return false unless this.validateUser()
     user =
       jid: $('#jid').val()
       username: $('#user-name').val()

    valid

  saveSystem: ->
    return unless this.validateSystem()
    user =
      jid: $('#jid').val()
      username: $('#user-name').val()

        $('#password-error').text 'Password must be at least 8 characters.'
        valid = false

      # admin updating a user's password
      if @session.bareJid() != @selected.jid
        if password1 != password2
          $('#password-error').text 'Passwords must match.'
          valid = false

    else # new user
      if node == ''
        $('#user-name-error').text 'User name is required.'
