add error if param is missing