 
     $scope.message = ""
     $scope.loggedIn = $scope.getUsername()
-    $scope.getUsername()
     return
 ]
        ).success (data, status, headers, config) ->
            $scope.username = data.username
            $scope.loggedIn = true
            return
        .error (data, status, headers, config) ->
            $scope.loggedIn = false
            delete($window.sessionStorage.token)
            return

    $scope.login = (user) ->
        $http.post(

                return
        return

    $scope.logout = ->
        $scope.loggedIn = false
        $scope.username = undefined
        delete($window.sessionStorage.token)        

    $scope.register = (user) ->
        $http(
            method: 'POST'
