apiv1: add login/register back into apiv1