     
     override func viewDidLoad() {
         super.viewDidLoad()
-        
-        
     }
-    
+
     override func didReceiveMemoryWarning() {
         super.didReceiveMemoryWarning()
         // Dispose of any resources that can be recreated.



    

    
    
//    func loginUser(email: String,password: String) {
//        
//        FIRAuth.auth()?.signInWithEmail(email, password: password) { (user, error) in
//    
//            if let error = error {
//                print(error.localizedDescription)
//                return
//            } else {
//                if let user = user {
//                    print("Successful login")
//                    self.performSegueWithIdentifier("loginToMap", sender: nil)
//                    
//                }
//            }
//
//        }
//        
//    }
    
    func loginUser(email: String,password: String, completionHandler: (userID: String) -> ()) {
        

        
        if let email = loginEmailTextField.text, password = loginPasswordTextField.text {
            
            loginUser(email, password: password)
       }
        
    }
    
