wiring up apis, need to add login-loading screen first