Removed old code from sessions controller