Move ifLoginRequired() to Handlebars helper