finish login/logout/register