Restructure Login.