hack solution to API login error