added to check fill fields privateKey and userId