Round 2 Extended 2

Added matchCredentials() method to match the credentials coming from the
UI and return true or false after matching it with those in the db.