Fixed CSRF check in editentity by using SimpleSamplPhp session directly