changed validation from using toUpperCase() to just checking for both cases. This is due to clicking 'cancel' on the prompt causing 'TypeError: Cannot read property 'toUpperCase' of null' and breaking the script