Modified so that a session would store the netid of the user after login.