Add check for mysql-plugin validate_password to allow passwords as hashes (Fixes #4777) See merge request !635