This seems odd, that the username is now passed through 'params[:type]', is that correct?