change default login/out behavior