vb.net login form cant connect to database : I have a problem in my login form everytime i want to login i receive message username or textbox invalid but in the database the username and password is correct 

here is my code 

    Imports System.Data.SqlClient

Public Class LoginForm
    Private Sub UsersBindingNavigatorSaveItem_Click(sender As Object, e As EventArgs) Handles UsersBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.UsersBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.DataSet1)

    End Sub

    Private Sub LoginForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'DataSet1.users' table. You can move, or remove it, as needed.
        Me.UsersTableAdapter.Fill(Me.DataSet1.users)

    End Sub

    Private Sub Button3_Click(sender As Object, e As EventArgs)

    End Sub

    Private Sub Button4_Click(sender As Object, e As EventArgs)

    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click

        Dim connection As New SqlConnection("Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\Database_topdent.mdf;Integrated Security=True")
        Dim command As New SqlCommand("Select * from  users where User = @user and Password = @password ", connection)

        command.Parameters.Add("@user", SqlDbType.VarChar).Value = UserTextBox.Text
        command.Parameters.Add("@password", SqlDbType.VarChar).Value = PasswordTextBox.Text

        Dim adapter As New SqlDataAdapter(command)
        Dim table As New DataTable()
        adapter.Fill(table)

        If table.Rows.Count() <= 0 Then
            MessageBox.Show("username or textbox invalid")
        Else
            MessageBox.Show("Login Succesful")



        End If



    End Sub
End Class

