fixed log-in-out