Lgout function and sessions added