Changed the user session stuff