Refactoring login page to fit horizontal layout.