Merge pull request #20 from dodobas/master

Fix missing login logic in templates