Has bugs in re-login