login page is added and design register dialog.