debug adding api before success/fail on login