Added checks on name for prompt.cancel