login/logout/register cleanup