added a hack to allow us to log in multiple times.