Removed the index_page from the config
Adds the Check If User is Logged in Function
Adds Login and Logout Function