Updated with a mock login.