fixes with sending and /logout.