Made it so the API is relavent per logged in user (not a global API)