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

        
        if let email = loginEmailTextField.text, password = loginPasswordTextField.text {
            
            loginUser(email, password: password) { (stringvalue) -> () in
                    self.userUID = stringvalue
            }
            

       }
        
        print("useruid: " + self.userUID)
        
    }
    



    
    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 user != nil {
                    print("Successful login")
                    self.performSegueWithIdentifier("loginToMap", sender: nil)
                    
                }
            }

        }
        
    }
    
    func loginUser(email: String,password: String, completionHandler: (userID: String) -> ()) {
        
