I just created a small console app that reproduces your problem, and saw that CS2011 and Prem Shanker Verma had the right solution, but wrong keyword :)
It's actually "Password" that's causing the problem in your UPDATE statement. Wrap that in square brackets ("[]") and the problem goes away!
So, your updated statement should look like this:
string update = "UPDATE Login SET [Password] = '" + TextBox2.Text + "' WHERE UserId = '" + dtr[0].ToString() + "'";
And remember to remove the extraneous space that is being appended to the password after the contents of TextBox2 (the above statement is correct) :)