         let headers = ["Authorization" : "Basic " + base64LoginString!]
         
         // Send the request and deal with the response as JSON
+        UIApplication.sharedApplication().networkActivityIndicatorVisible = true
         sendRequest(Method.POST, endpoint: endpoint, headers:headers).responseJSON { (request, response, result) -> (Void) in
+            UIApplication.sharedApplication().networkActivityIndicatorVisible = false
             if ( result.isSuccess ) {
                 // Look for the auth token
                 self.sessionToken = response!.allHeaderFields[APIConnector.kSessionIdHeader] as! String?

        // Set our endpoint for the user data
        let endpoint = "data/" + userId;
        
        sendRequest(Method.GET, endpoint: endpoint).responseJSON { (request, response, result) -> Void in
            if ( result.isSuccess ) {
                let json = JSON(result.value!)
                completion(Result.Success(json))

    /**
     * Sends a request to the specified endpoint
    */
    private func sendRequest(requestType: (Alamofire.Method)? = Method.GET,
        endpoint: (String),
        parameters: [String: AnyObject]? = nil,
        headers: [String: String]? = nil) -> (Request)
