finished logging in api