Add name validation to cancel functions on server. Add some comments