Updated Logged In and Index pages

Also added login.php, beginning to link stuff together with the DB.