login/register cleanup.