Make login work

Re-worked the default views and main routes so login works.