restructure move login modal to page