Code was cut:
error is here:
OleDbCommand updatecmd = new OleDbCommand("Update Login SET Password ='"
+ txtPassword.Text + "' where Username='" + txtUsername.Text + "'", con);
Put the single ' before the "
so correct query is:
OleDbCommand updatecmd = new OleDbCommand("Update Login SET Password ='"
+ txtPassword.Text + '" where Username='" + txtUsername.Text + "'", con);