Check if only one cloud resource is chosen and  remove alert statement from js