modified logintemplate for header and footer