update login/register to map with new database