Minor fixes to resource upload validation