Refactor the upload validation logic to not depend on the current user. Fixes several broken upload tests.