A simple validator for checking password strength.