You should only read the one record from database for the given user user name. Then compare the retrieved password to the one in text box:
using (SqlCommand command = new SqlCommand("SELECT pass FROM Login WHERE uname = @uname", cn))
{
command.Parameters.AddWithValue("@uname", UName.Text);
string pass = (string)command.ExecuteScalar();
if (PWord.Text == pass)
{
MessageBox.Show("Password Accepted");
this.Close();
}
else
{
MessageBox.Show("Password Not Valid");
}
}
This is IMO the easiest you can do right now. Please note that this doesn't handle the situation if the user is not in the database at all. And you shouldn't store password in plain text as already pointed out in the comments.