user login logout fixed