I have a JS function to create a user in firebase, it creates a user with email and password and then updates the profile to set a display name. When the function gets called fr