API call to /profile/register