refactor login page.