Issues with file upload validation