Fixed client-side bug not setting the user after login.