Added requireLogin() function to start session and check credentials. Also made some small changes to links.php, and added doClaim() to user class.