added main template and modified template for login and other pages