if (is_null($password)) {
            throw new InvalidArgumentException("No password supplied"); 
        }