Pass:=ReadString('Passwords', Login, ''); if Pass <> '' then if Password = Pass then //Далее код при успешном входе