fixed login logout exception