changed updatefirebase to only update if user auth is accepted