cleaning up login/logout