fix notices for login/logout