logout implemented and demo pages added