Log in, dashboard, api bug fixes