fixed login/logout resize bug