Validating the login interface credentials

i have created and stored the user registration details into the database.Now I have to validate those stored credentials with the credentials that user enters during the login process.Could any one help me like validating the details ?

  Discussion posts and replies are publicly visible