Only write userinfo to firebase when authenticated.