Refactored checkpass method to work with incorrect credentials.