     }
     
     func keyboardWillHide(notification: NSNotification) {
-        
         let info = notification.userInfo!
         // let keyboardFrame: CGRect = (info[UIKeyboardFrameEndUserInfoKey] as! NSValue).CGRectValue()
         let animationDuration: NSTimeInterval = (info[UIKeyboardAnimationDurationUserInfoKey])!.doubleValue
-        
         
         self.middleLayoutContraint.constant = 0
         UIView.animateWithDuration(animationDuration, animations: { () -> Void in

    private var currentOrientation: UIDeviceOrientation?
    private var validatedUrlString: String?
    
    //private var urlStrings: SignalProducer<String, NSError>
    
    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        
        // Set up views if editing an existing Meal.
        if let site = site {
            navigationItem.title = site.url.host
            urlTextField.text   = site.url.absoluteString
            passwordTextField.text = site.apiSecret
        }
        
        let urlStrings = urlTextField.rac_textSignal()
            .toSignalProducer()
            .map { text in text as! String }
            .throttle(0.5, onScheduler: QueueScheduler.mainQueueScheduler)
        
        
        let validationResults = urlStrings
            .flatMap(.Latest) { (query: String) -> SignalProducer<(NSData, NSURLResponse), NSError> in

            print("Validation results: \(results)")
            self.validatedUrlString = results
            self.nextButton.enabled = (results != nil) ? true : false
            self.activityIndicator.stopAnimating()
            
        }
        
        let offset = 1.0
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, Int64(offset * Double(NSEC_PER_SEC))), dispatch_get_main_queue(), {
            // Do something
