added logintemplate