fixed login logout