I need to make the query and validate the data.Someone to help me urgently?

Hi,

You need to import wix-data then you can use .query to match and return the data.
For more information on how to use query, check this out - wix-Data#query

Regarding the validation, here is an article on how to do that - Here

GoodLuck!
Best,

Mustafa

I was testing it with the query but it does not return any element of the database
 
Will you have an example? 

your code should look something like this :

import wixData from 'wix-data';

// ...

wixData.query("myCollection")
  .eq('email',$w("#email").value)
  .eq('password', $("#password').value
  .find()
  .then( (results) => {
    let firstItem = results.items[0]; //see item below
  } )
  .catch( (err) => {
    let errorMsg = err;
  } );

/*  firstItem is:
 *
 *  {
 *    "_id":          "00001",
 *    "_owner":       "ffdkj9c2-df8g-f9ke-lk98-4kjhfr89keedb",
 *    "_createdDate": "2017-05-24T12:33:18.938Z",
 *    "_updatedDate": "2017-05-24T12:33:18.938Z",
 *    "title":        "Mr.",
 *    "first_name":   "John",
 *    "last_name":    "Doe"
 *  }
 */