hopefully login and logout fixed