1) you never called session_start() in either page.
2) you need to pass the session ID from one page to the other either in a cookie or via URL.
1 other suggestion, these 4 lines can be combined into 1.
$username = $_POST['username'];
$password = $_POST['password'];
session_register('username');
$_SESSION['username'] = $_POST['username'];
should be:
$_SESSION['username'] = $_POST['username'];
if you are using $_SESSION, that means you should not be using session_register or session_is_regsitered.
put your variables into the session like this:
$_SESSION['varname'] = %VALUE%;
where %VALUE% is from POST, a database value, whatever.
and verify your session values like this:
if(isset($_SESSION['varname']))
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.session