     
     public func checkAuth(completion: (ErrorType?) -> Void) {
         
-        guard let siteURL = siteURL else {
-            completion(UploadError.MissingNightscoutURL)
-            return
-        }
-        
-        guard let APISecret = APISecret else {
-            completion(UploadError.MissingAPISecret)
-            return
-        }
-        
         let testURL = siteURL.URLByAppendingPathComponent(defaultNightscoutAuthTestPath)
         
         let request = NSMutableURLRequest(URL: testURL)

import Crypto

public enum UploadError: ErrorType {
    case MissingAPISecret
    case MissingNightscoutURL
    case HTTPError(status: Int, body: String)
    case MissingTimezone
    case Unauthorized

        lastStoredTreatmentTimestamp = nil
    }

    public init(siteURL: NSURL, APISecret: String) {
        self.siteURL = siteURL
        self.APISecret = APISecret
        
