logout is also done at server now