Improved session, removed old validate function