adding error message in case of missing params