updated session and removed extra files
Fixed session handling and redirects