Updating to the new Firebase authentication logic.