errors when required params not passed

first try at generateUniqueHash