Tweaking environment validation rules

Not all endpoints are required, but if they are present they should be
valid uris. Previously everything was considered required.