fix register.rb to handle account as array.