Added input checking to file upload button