fixed login/logout flood