updated registration API