Good login logout backend code and log.