Fix #49 navigation-bar should not appear in login page.

Prepending the navbar from 'outside' the template is not a good idea. It's better to pass 'navbarTemplate' as a template parameter into the template. This way the template is a lot more flexible in where the navbar will appear. Also it might be a good idea to put the code in line 14 into a separate function `navbar()` for easier reuse.