scusa le domande ma:
cosa vuol dire 'addslashes'?
cosa vuol dire 'LIMIT 1'?

Come funziona fetch_row?
Non dovrebbe essere
if($row[1] == $password)??