added RegisterWindow and fix LoginPage