A function that compares the credential information stored on the server and the credential information entered by a user.