calling update_available_resource to update data before validation. Also needs to add validation if rpc object already present no need to create again