fix relogin page login redirect bugs