prepared the index.php file for user login and added dynamic variables in index_template.php