Fix upload when logged in