Fixed the pop up cannot be hidden and style error for register page.