Fixing account management and code download bugs