added session clear and logout