anonymous users can't upload, fixed bugs for anon users