added error handling on reset-login-hash and call-for-certificate calls

added ansible vars to the endpoint and for the authorization token