Small fixes to make it work on my system.

1) In register.php, move sql cal litle later, so that it doesn;t error out.
2) In activate-account.php, change to index.php