made system for logging out