added bootstrap nav
added logic to login template