Why this error? Parse error: syntax error, unexpected T_ELSE
<p>I'm making a system to change my password and I don't know why I am getting this error.
I have this error message:</p>

<blockquote>
  <p>Parse error: syntax error, unexpected T_ELSE in /home/zenonhos/public_html/system/changepass.php on line 37</p>
</blockquote>

<pre><code>&lt;?php
session_start();

$user = $_SESSION['username'];

if ($user)
{

    if ($_POST['submit'])
    {
        $oldpassword = md5($_POST['oldpassword']);
        $newpassword = md5($_POST['newpassword']);
        $repeatnewpassword = md5($_POST['repeatnewpassword']);


        $connect = mysql_connect("*******","******","*****");
        mysql_select_db("zenonhos_lr");

        $queryget = mysql_query("SELECT `password` FROM `users` WHERE username='$user'") or die();
        $row = mysql_fetch_assoc($queryget);
        $oldpassworddb = $row['password']; 

        if ($oldpassword==$oldpassworddb)
        {
            if ($newpassword == "") {
                echo "Password cannot be blank";
            } else {

                if ($newpassword==$repeatnewpassword)
                {
                    $querychange = mysql_query("UPDATE `users` SET password='$newpassword' WHERE username='$user'");

                    session_destroy();
                    die("Password successfully changed! &lt;a href='index.php'&gt;Return to home page&lt;/a&gt;");
                } else {
                    die("New passwords do not match");
                } else {
                    die("Old password does not match");
                } echo "&lt;form action='changepass.php' method='POST'&gt;
                    Old Password: &lt;input type='password' name='oldpassword'&gt;&lt;br&gt;
                    New Password: &lt;input type='password' name='newpassword'&gt;&lt;br&gt;
                    Repeat New Password: &lt;input type='password' name='repeatnewpassword'&gt;&lt;br&gt;
                    &lt;input type='submit' name='submit' value='Change Password'&gt;";
            } else {
                die("You must be logged in to view this page.");
            }

?&gt;
</code></pre>
