updating models to autogenerate userid