better bootstraping for login template, flash message, page title