I\'d like to write a function that checks if user\'s login and hashed password exists in database. Let\'s assume DB is very simple: