login logout fixed