let userID = FIRAuth.auth()?.currentUser?.uid
ref.child("user_registration").child(userID!).setValue(["username": self.fullName.text, "email": self.emailTextField.text])
the problem is "unexpectedly found nil while unwrapping an optional" that is the userID!