(feat) add logout function to server