added error response if one of the missing fields isnt available, change...

...d userIds back to userId to reflect the old format that is deployed across many instances. Also added multiple return paths in order to fail early incase there's an issue with one required field.

If it causes problem, I can change it back to userIds.