isValidMD5() now check length AND hex characters

Changes:

- isValidMD5() now check length AND hex characters.
- code look optimizations.
ha!
Let's make this even prettier. get rid of the `md5.length()` check and let's make that check part of the regex itself, and then let's have this merged.

Thank you for this fix.