fixed logout

It was displaying text when logging out.