Move login into its own view.