How to check if user email/name is taken

So it’s been quite a while, but I’m trying to implement what you suggest.

This is the first time I’ve tried to do scripting.

I’m having trouble dealing with whatever is in event.request.payload.resource. It would be nice if there was more explanation about ‘resource’ at https://wiki.dreamfactory.com/DreamFactory/Features/Scripting#Resources_Available_To_A_Script .