refactor login layout.