[SD] Refactor login page.