fixed user session issues