fix check user session issues