modify login_successful.R to be backend-agnostic