log-out logic added.