Add some error checking when uploading files

Check to ensure a dataset is selected before trying to
upload a file

Also, add some helpful test on the dataset create input box