added and index.php which checks login status and redirects accordinly
added logout.php which logs the users out
Tests and Minor changes to sign in, everything works as it should