Added authentication code so user is now recognised as logged in.
Hooked up the partial login view so it now changes when the user is logged in or out.