Added basic validation for file upload.

Need to add checking for file size. Will probably put validation in its
own method.