created a function that checks if email and password match what the user writes when trying to log in.