Implemented MD5 validating and made it optional.