Added global constants for the home and login page
Added redirect function
Added a logout page, and a check in index.php that will redirect the user to their homepage if they are already logged in