Mixing session_register() and $_SESSION is a guaranteed way of getting into a mess. I reckon the manual ought to make a special point of warning people about this when it discusses sessions. More than once, to make sure it gets through.
session_register("username");
...
$_SESSION['username']=$username;
All this does is set the username stored in the session to the username stored in the session. If $username had any value before session_register("username") was called, it was immediately lost and replaced with the username value stored in the session (that's what session_register() does).
Solution. Consign session_register() to the outer darkness. Forget it exists. Just use $_SESSION[] to interact with session variables.
session_start();
//do all checking for //username/password
//if pass ok...
$_SESSION['status'] = 1;
$_SESSION['username'] = $username;
header("Location: ../../admin.php");
(Of course, if $username is coming from a form, the Right Thing would be for it to be referred to as $_POST['username'] anyway.)