                     
                     //no there is no user with desired email
                     print("\(userEmail) isn't a user")
+                    self.displayAlertMessage(userMessage: "User doesn't exist")
                 }) { (error) in
                     print("Failed to get snapshot", error.localizedDescription)
 

        imagePicker.allowsEditing = false
        present(imagePicker, animated: true, completion: nil)
        
    }
    
    

                         print("key = \(uid)")
                        Database.database().reference().child("users").child(uid).child("messages").childByAutoId().setValue(message)
                        
                        
                        
                    }
                    
                    
