Refactor login Ui.