Not able to add onCompleteListener

mAuth.createUserWithEmailAndPassword(emailpassword
            .addOnCompleteListener(task -> {
                //task completed
                if(task.isSuccessfull()) Log.d("signIn","success"); //sign in success
                else Log.d("signIn","fail") //sign in failed
            });

This will help you