checks the user is logged in or not and based on that updates the email and authState
final void Function(AuthenticationProvider) initializeLoginState;