Fix login/logout for unprotected and skipped domains