added template class and login page