Replaced session API with user API