The explode function in validate_password wants two strings so I amde the mysqli query object an associate array and passed the correct_hash value as a string