             user = @model.make_model("users", userData)
             @rootscope.user = user
             @._setLocales()
+
             @._setTheme()
+
             return user
 
         return null

        else
            @.userData = null

    _setTheme: ->
        theme = @rootscope.user?.theme || @config.get("defaultTheme") || "taiga"
        @themeService.use(theme)

    _setLocales: ->
        lang = @rootscope.user?.lang || @config.get("defaultLanguage") || "en"

    constructor: (@rootscope, @storage, @model, @rs, @http, @urls, @config, @translate, @currentUserService,
                  @themeService) ->
        super()

        @._currentTheme = @config.get("defaultTheme") || "taiga" # load on index.jade

        userModel = @.getUser()
        @.setUserdata(userModel)

