finished logout wiring in the server