Check if the uri given is valid when creating a new trigger