 
     $scope.message = ""
     $scope.loggedIn = $scope.getUsername()
-    $scope.getUsername()
     return
 ]
                return
        return

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

        ).success (data, status, headers, config) ->
            $scope.username = data.username
            $scope.loggedIn = true
            console.log("Successfully authenticated (for now...)")
            return
        .error (data, status, headers, config) ->
            $scope.logout()
            return

    ## Check to see if the user is logged in (every interval seconds)
    $interval ->
        $scope.getUsername()
        return
    ,6000

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