adding index template
persist login info