Just before while where you set variable $passwordRetrieved declare it so it should look like this:
$tUser_SQLselect_Query = mysql_query($tUser_SQLselect);
$passwordRetrieved = "";
while ($row = mysql_fetch_array($tUser_SQLselect_Query, MYSQL_ASSOC)) {
$passwordRetrieved = $row['password'];
}