finish reg page and login dialog